import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import Home from '../components/home/Home'
import Fenlei from '../components/fenlei/Fenlei'
import Global from '../components/global/Global'
import Cart from '../components/cart/Cart'
import Mine from '../components/mine/Mine'
import Goods from '../components/goods/Goods'
import GoodDetail from '../components/goodDetail/GoodDetail'
import Login from '../components/login/Login'
import MineN from '../components/mine/MineN'
import ZhuCe from "../components/login/zhuCe.vue"


export default new Router({
  routes: [
    {
      path: '/',  //默认
      redirect: '/home'
    },{
      path: '/home',  //首页
      component: Home
    },{
      path: '/fenlei',  //分类
      component: Fenlei
    },{
      path: '/global',  //全球尖货
      component: Global
    },{
      path: '/cart',  //购物车
      component: Cart
    },{
      path: '/mineN',  //我
      name:'MineN',
      component: MineN
    },{
      path: '/goods/:id',  //分类跳转页面
      component: Goods
    },{
      path: '/goodDetail',  //商品详情
      component: GoodDetail
    },{
      path: '/login',   //登录
      component: Login
    },
    {
      path: '/mine',   //MINE登录状态
      name:'Mine',
      component: Mine
    },
    {
      path: '/zhuce',   //MINE登录状态
      component: ZhuCe
    }
  ]
})
